package com.cs.deviceManager.mqtt;

import jakarta.annotation.PreDestroy;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MqttConfig {

    @PreDestroy
    public void destroyMqtt() {
        MqttUtil.destroy(); // 手动调用清理逻辑
    }
}
